Permalink
Browse files

always enable resolver support.

with mutex use removed, we no longer have node >=v0.7.0 dependency
  • Loading branch information...
1 parent fd1f59d commit 359e374ef1bc97cf5084bd78446248ecfe24b175 @nikhilm committed Sep 16, 2012
Showing with 0 additions and 8 deletions.
  1. +0 −2 src/taglib.cc
  2. +0 −6 src/taglib.h
View
2 src/taglib.cc
@@ -284,7 +284,6 @@ TagLib::String NodeStringToTagLibString( Local<Value> s )
}
}
-#ifdef ENABLE_RESOLVERS
Handle<Value> AddResolvers(const Arguments &args)
{
for (int i = 0; i < args.Length(); i++) {
@@ -362,7 +361,6 @@ TagLib::File *CallbackResolver::createFile(TagLib::FileName fileName, bool readA
return node_taglib::createFile(stream, baton.type);
}
-#endif // ENABLE_RESOLVERS
}
extern "C" {
View
6 src/taglib.h
@@ -9,10 +9,6 @@
#include <node_version.h>
-#if NODE_VERSION_AT_LEAST(0, 7, 0)
-#define ENABLE_RESOLVERS
-#endif
-
namespace node_taglib {
class Tag;
class BufferStream;
@@ -47,7 +43,6 @@ struct AsyncBaton {
Tag *tag; /* only used by taglib.tag */
};
-#ifdef ENABLE_RESOLVERS
v8::Handle<v8::Value> AddResolvers(const v8::Arguments &args);
class CallbackResolver;
@@ -71,7 +66,6 @@ class CallbackResolver : public TagLib::FileRef::FileTypeResolver {
static void stopIdling(uv_async_t *handle, int status);
static void invokeResolver(AsyncResolverBaton *baton);
};
-#endif
}
#endif

0 comments on commit 359e374

Please sign in to comment.