remove lib/content
[enigma2.git] / lib / base / econfig.cpp
index 3d51255..e69de29 100644 (file)
@@ -1,43 +0,0 @@
-#include <lib/base/eerror.h>
-#include <lib/base/econfig.h>
-#include <lib/base/init.h>
-#include <lib/base/init_num.h>
-#include <sys/stat.h>
-
-eConfig *eConfig::instance;
-
-eConfig::eConfig()
-{
-       if (!instance)
-               instance=this;
-
-       setName(CONFIGDIR "/enigma/registry");
-       int e=open();
-       if (e == NC_ERR_CORRUPT)
-       {
-               eWarning("CORRUTPED REGISTRY!");
-               ::remove(CONFIGDIR "/enigma/registry");
-       }
-       if (e)
-       {
-               if (createNew())
-               {
-                       mkdir(CONFIGDIR "/enigma", 0777);
-                       if (createNew())
-                               eFatal("error while opening/creating registry - create " CONFIGDIR "/enigma");
-               }
-               if (open())
-                       eFatal("still can't open configfile");
-       }
-       locked=1;
-       ppin=0;
-       getKey("/elitedvb/pins/parentallock", ppin );
-}
-
-eConfig::~eConfig()
-{
-       if (instance==this)
-               instance=0;
-}
-
-eAutoInitP0<eConfig> init_eRCConfig(eAutoInitNumbers::configuration, "Configuration");