Skip to content

Commit

Permalink
always enable resolver support.
Browse files Browse the repository at this point in the history
with mutex use removed, we no longer have node >=v0.7.0 dependency
  • Loading branch information
nikhilm committed Sep 16, 2012
1 parent fd1f59d commit 359e374
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/taglib.cc
Expand Up @@ -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++) {
Expand Down Expand Up @@ -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" {
Expand Down
6 changes: 0 additions & 6 deletions src/taglib.h
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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.