Freestyle: code cleanup: removed unused (outdated) static variables.

This commit is contained in:
Tamito Kajiyama
2014-06-26 12:12:50 +09:00
parent 8d6f546f32
commit 2c004708f2

View File

@@ -67,7 +67,6 @@ extern "C" {
// Freestyle configuration
static bool freestyle_is_initialized = false;
static Config::Path *pathconfig = NULL;
static Controller *controller = NULL;
static AppView *view = NULL;
@@ -84,8 +83,6 @@ int freestyle_viewport[4];
// current scene
Scene *freestyle_scene;
static string default_module_path;
static void load_post_callback(struct Main *main, struct ID *id, void *arg)
{
lineset_copied = false;
@@ -107,7 +104,6 @@ void FRS_initialize()
if (freestyle_is_initialized)
return;
pathconfig = new Config::Path;
controller = new Controller();
view = new AppView;
controller->setView(view);
@@ -115,9 +111,6 @@ void FRS_initialize()
freestyle_scene = NULL;
lineset_copied = false;
default_module_path = pathconfig->getProjectDir() + Config::DIR_SEP + "style_modules" +
Config::DIR_SEP + "contour.py";
BLI_callback_add(&load_post_callback_funcstore, BLI_CB_EVT_LOAD_POST);
freestyle_is_initialized = 1;
@@ -133,7 +126,6 @@ void FRS_set_context(bContext *C)
void FRS_exit()
{
delete pathconfig;
delete controller;
delete view;
}