From 94240c98fb3e306b67168a57e564f890b5734f9d Mon Sep 17 00:00:00 2001 From: Flex Date: Mon, 21 May 2018 20:27:12 -0600 Subject: [PATCH] re-remove unused old func and add =null to pos --- plugins/settingsapi.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/plugins/settingsapi.js b/plugins/settingsapi.js index 0a3bf12..7341c1f 100644 --- a/plugins/settingsapi.js +++ b/plugins/settingsapi.js @@ -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() {