gplugin/gplugin

remove some cruft that accidentally got added
feature/osx-fixing
2015-12-20, Gary Kramlich
a3fd9e20d7f2
Parents 0b1c1ade39f3
Children c56e242af5ac
remove some cruft that accidentally got added
--- a/lua/gplugin-lua-loader.c Sun Dec 20 19:01:44 2015 -0600
+++ b/lua/gplugin-lua-loader.c Sun Dec 20 21:10:03 2015 -0600
@@ -78,20 +78,6 @@
return ret;
}
-static void
-_gplugin_lua_loader_add_require_path(GPluginPlugin *plugin, const gchar *path) {
- lua_getglobal( L, "package" );
- lua_getfield( L, -1, "path" ); // get field "path" from table at top of stack (-1)
- std::string cur_path = lua_tostring( L, -1 ); // grab path string from top of stack
- cur_path.append( ';' ); // do your path magic here
- cur_path.append( path );
- lua_pop( L, 1 ); // get rid of the string on the stack we just pushed on line 5
- lua_pushstring( L, cur_path.c_str() ); // push the new one
- lua_setfield( L, -2, "path" ); // set the field "path" in table at -2 with value at top of stack
- lua_pop( L, 1 ); // get rid of package table from top of stack
- return 0; // all done!
-}
-
/******************************************************************************
* GPluginLoaderInterface API
*****************************************************************************/