diff options
Diffstat (limited to 'ext/tk/lib/tk')
-rw-r--r-- | ext/tk/lib/tk/itemconfig.rb | 1 | ||||
-rw-r--r-- | ext/tk/lib/tk/optiondb.rb | 6 | ||||
-rw-r--r-- | ext/tk/lib/tk/timer.rb | 4 | ||||
-rw-r--r-- | ext/tk/lib/tk/variable.rb | 3 |
4 files changed, 0 insertions, 14 deletions
diff --git a/ext/tk/lib/tk/itemconfig.rb b/ext/tk/lib/tk/itemconfig.rb index 14396048ba..e8eb83d66c 100644 --- a/ext/tk/lib/tk/itemconfig.rb +++ b/ext/tk/lib/tk/itemconfig.rb @@ -124,7 +124,6 @@ module TkItemConfigMethod @mode || false end def TkItemConfigMethod.__set_IGNORE_UNKNOWN_CONFIGURE_OPTION__!(mode) - fail SecurityError, "can't change the mode" if $SAFE>=4 @mode = (mode)? true: false end diff --git a/ext/tk/lib/tk/optiondb.rb b/ext/tk/lib/tk/optiondb.rb index 0f3be30ff7..91d2697a86 100644 --- a/ext/tk/lib/tk/optiondb.rb +++ b/ext/tk/lib/tk/optiondb.rb @@ -22,15 +22,9 @@ module TkOptionDB end def add(pat, value, pri=None) - # if $SAFE >= 4 - # fail SecurityError, "can't call 'TkOptionDB.add' at $SAFE >= 4" - # end tk_call('option', 'add', pat, value, pri) end def clear - # if $SAFE >= 4 - # fail SecurityError, "can't call 'TkOptionDB.crear' at $SAFE >= 4" - # end tk_call_without_enc('option', 'clear') end def get(win, name, klass) diff --git a/ext/tk/lib/tk/timer.rb b/ext/tk/lib/tk/timer.rb index ddfbfce9be..29aa84b0d9 100644 --- a/ext/tk/lib/tk/timer.rb +++ b/ext/tk/lib/tk/timer.rb @@ -498,10 +498,6 @@ class TkTimer end def wait(on_thread = true, check_root = false) - if $SAFE >= 4 - fail SecurityError, "can't wait timer at $SAFE >= 4" - end - unless @running if @return_value.kind_of?(Exception) fail @return_value diff --git a/ext/tk/lib/tk/variable.rb b/ext/tk/lib/tk/variable.rb index 0487b034bd..496225a92d 100644 --- a/ext/tk/lib/tk/variable.rb +++ b/ext/tk/lib/tk/variable.rb @@ -360,9 +360,6 @@ class TkVariable end def wait(on_thread = false, check_root = false) - if $SAFE >= 4 - fail SecurityError, "can't wait variable at $SAFE >= 4" - end on_thread &= (Thread.list.size != 1) if on_thread if check_root |