re-remove unused old func and add =null to pos

This commit is contained in:
Cynthia Foxwell 2018-05-21 20:27:12 -06:00
parent 21075e78d2
commit 94240c98fb
1 changed files with 1 additions and 10 deletions

View File

@ -24,7 +24,7 @@ exports = {
ourSections: [],
_callbacks: {},
_panels: {},
addSection: function(name,label,color=null,callback,pos){
addSection: function(name,label,color=null,callback,pos=null){
let data = {};
data.section = name || `SAPI_${Math.floor(Math.random()*10000)}`;
@ -44,15 +44,6 @@ exports = {
$settingsapi.ourSections.push({section:"HEADER",label:label});
$settingsapi.sections.splice(pos ? pos : $settingsapi.sections.length-4,0,{section:"HEADER",label:label});
},
exportSections: function(){
let out = "";
for(i in $settingsapi._sections){
out = out + convertToText($settingsapi._sections[i]);
}
return out;
},
//All of these allow us to use Discord's elements.
elements: {
createVerticalPanel: function() {