Bug 17600: Standardize our EXPORT_OK
[srvgit] / C4 / Service.pm
index bdb2ba1..c50051d 100644 (file)
@@ -43,16 +43,10 @@ use warnings;
 
 use CGI qw ( -utf8 );
 use C4::Auth qw( check_api_auth );
-use C4::Output qw( :ajax );
+use C4::Output qw( output_with_http_headers );
 use C4::Output::JSONStream;
 use JSON;
 
-our $debug;
-
-BEGIN {
-    $debug = $ENV{DEBUG} || 0;
-}
-
 our ( $query, $cookie );
 
 sub _output {
@@ -257,7 +251,6 @@ sub dispatch {
             next ROUTE if ( !defined( $query->param ( $param ) ) );
         }
 
-        $debug and warn "Using $path";
         $handler->( @match );
         return;
     }