Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1004444 // deleteFromLogicList

JavaX fragment (include)

1  
static synchronized bool deleteFromLogicList(S text) {
2  
  if (empty(text)) false;
3  
  text = trim(text);
4  
  L<S> l = loadLogicList();
5  
  int i = indexOfIgnoreCase(l, text);
6  
  if (i < 0) false;
7  
  l.remove(i);
8  
  saveQuotedLog(logicListFile(), l);
9  
  callOpt(getOpt(mc(), "gLogicList_cache"), "clear");
10  
  true;
11  
}

Author comment

Began life as a copy of #1004397

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1004444
Snippet name: deleteFromLogicList
Eternal ID of this version: #1004444/1
Text MD5: 84809b94adf0da0eded8578b4b41aaa6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-17 16:13:02
Source code size: 313 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 513 / 525
Referenced in: [show references]