Bug 17600: Standardize our EXPORT_OK
[srvgit] / C4 / External / OverDrive.pm
index 9044169..efc663f 100644 (file)
@@ -21,7 +21,7 @@ use strict;
 use warnings;
 
 use Koha;
-use JSON;
+use JSON qw( from_json );
 use Koha::Caches;
 use HTTP::Request;
 use HTTP::Request::Common;
@@ -32,7 +32,6 @@ BEGIN {
     require Exporter;
     our @ISA = qw( Exporter ) ;
     our @EXPORT = qw(
-        IsOverDriveEnabled
         GetOverDriveToken
     );
 }
@@ -63,23 +62,6 @@ This module provides content search for OverDrive,
 
 =over
 
-=item IsOverDriveEnabled
-
-Returns 1 if all of the necessary system preferences for OverDrive are set.
-
-=back
-
-=cut
-
-sub IsOverDriveEnabled {
-    return (
-        C4::Context->preference( 'OverDriveClientKey' ) &&
-        C4::Context->preference( 'OverDriveClientSecret' )
-    );
-}
-
-=over
-
 =item GetOverDriveToken
 
 Fetches an OAuth2 auth token for the OverDrive API, reusing an existing token in