The codebase to run the *spark d-fuser controller www.sparkav.co.uk/dvimixer

Dependencies:   SPK-TVOne DMX DmxArtNet NetServicesMin OSC PinDetect mRotaryEncoder iniparser mbed spk_oled_ssd1305 filter

Revision:
51:98cc27390484
Parent:
50:e98220a71065
Child:
61:f0a42bfca816
diff -r e98220a71065 -r 98cc27390484 spk_settings.h
--- a/spk_settings.h	Tue Dec 11 20:18:09 2012 +0000
+++ b/spk_settings.h	Mon Dec 17 18:22:07 2012 +0000
@@ -292,71 +292,6 @@
         return success;
     }
     
-    bool        saveEditingKeyerSet(string filename)
-    {
-        int success = 0;
-
-        local = new LocalFileSystem("local");
-        string filePath("/local/");
-        filePath += filename;
-
-        dictionary* settings = iniparser_load(filePath.c_str());
-        if (!settings) settings = dictionary_new(7); 
-                    
-        const int keyLength = 11;
-        const int valueLength = 4;
-        
-        char keyMinY[keyLength];
-        char valueMinY[valueLength];
-        snprintf(keyMinY, keyLength, "Key%i:MinY", editingKeyerSetIndex);
-        snprintf(valueMinY, valueLength, "%i", keyerParamSets[editingKeyerSetIndex][minY]);
-        success += iniparser_set(settings, keyMinY, valueMinY);
-        
-        char keyMaxY[keyLength];
-        char valueMaxY[valueLength];
-        snprintf(keyMaxY, keyLength, "Key%i:MaxY", editingKeyerSetIndex);
-        snprintf(valueMaxY, valueLength, "%i", keyerParamSets[editingKeyerSetIndex][maxY]);
-        success += iniparser_set(settings, keyMaxY, valueMaxY);
-        
-        char keyMinU[keyLength];
-        char valueMinU[valueLength];
-        snprintf(keyMinU, keyLength, "Key%i:MinU", editingKeyerSetIndex);
-        snprintf(valueMinU, valueLength, "%i", keyerParamSets[editingKeyerSetIndex][minU]);
-        success += iniparser_set(settings, keyMinU, valueMinU);
-        
-        char keyMaxU[keyLength];
-        char valueMaxU[valueLength];
-        snprintf(keyMaxU, keyLength, "Key%i:MaxU", editingKeyerSetIndex);
-        snprintf(valueMaxU, valueLength, "%i", keyerParamSets[editingKeyerSetIndex][maxU]);
-        success += iniparser_set(settings, keyMaxU, valueMaxU);
-        
-        char keyMinV[keyLength];
-        char valueMinV[valueLength];
-        snprintf(keyMinV, keyLength, "Key%i:MinV", editingKeyerSetIndex);
-        snprintf(valueMinV, valueLength, "%i", keyerParamSets[editingKeyerSetIndex][minV]);
-        success += iniparser_set(settings, keyMinV, valueMinV);
-        
-        char keyMaxV[keyLength];
-        char valueMaxV[valueLength];
-        snprintf(keyMaxV, keyLength, "Key%i:MaxV", editingKeyerSetIndex);
-        snprintf(valueMaxV, valueLength, "%i", keyerParamSets[editingKeyerSetIndex][maxV]);
-        success += iniparser_set(settings, keyMaxV, valueMaxV);
-        
-        FILE* file = fopen(filePath.c_str(), "w");
-        if (file)
-        {               
-            iniparser_dump_ini(settings, file);
-            
-            fclose(file);
-        }
-        
-        iniparser_freedict(settings);
-        
-        delete local;
-        
-        return (success == 0);
-    }
-    
 protected:
     LocalFileSystem *local;
     vector< vector<int> >   keyerParamSets;