Skip to content

Commit

Permalink
Remove unused setting (to use py3 print on py2).
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioz committed Apr 28, 2024
1 parent 5b9fb5c commit 3dbcef9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ public void initializeDefaultPreferences() {
PyCodeCompletionPreferences.DEFAULT_ADD_SPACES_WHEN_NEEDED);
node.putBoolean(PyCodeCompletionPreferences.ADD_SPACE_AND_COLON_WHEN_NEEDED,
PyCodeCompletionPreferences.DEFAULT_ADD_SPACES_AND_COLON_WHEN_NEEDED);
node.putBoolean(PyCodeCompletionPreferences.FORCE_PY3K_PRINT_ON_PY2,
PyCodeCompletionPreferences.DEFAULT_FORCE_PY3K_PRINT_ON_PY2);
node.put(PyCodeCompletionPreferences.KEYWORDS_CODE_COMPLETION,
PyCodeCompletionPreferences.DEFAULT_KEYWORDS_CODE_COMPLETION);
node.putInt(PyCodeCompletionPreferences.CHARS_FOR_CTX_INSENSITIVE_MODULES_COMPLETION,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,7 @@ public static boolean getUseSubstringMatchInCodeCompletion() {
public static final boolean DEFAULT_ADD_SPACES_WHEN_NEEDED = false; //Keep current behavior by default

public static final String ADD_SPACE_AND_COLON_WHEN_NEEDED = "ADD_SPACE_AND_COLON_WHEN_NEEDED";

public static final boolean DEFAULT_ADD_SPACES_AND_COLON_WHEN_NEEDED = false; //Keep current behavior by default
public static final String FORCE_PY3K_PRINT_ON_PY2 = "FORCE_PY3K_PRINT_ON_PY2";
public static final boolean DEFAULT_FORCE_PY3K_PRINT_ON_PY2 = false;

public static final String KEYWORDS_CODE_COMPLETION = "KEYWORDS_CODE_COMPLETION";
public static final String DEFAULT_KEYWORDS_CODE_COMPLETION = defaultKeywordsAsString();
Expand Down Expand Up @@ -201,11 +198,6 @@ public static boolean addSpaceAndColonWhenNeeded() {
.getBoolean(ADD_SPACE_AND_COLON_WHEN_NEEDED, DEFAULT_ADD_SPACES_AND_COLON_WHEN_NEEDED);
}

public static boolean forcePy3kPrintOnPy2() {
return PydevPrefs.getEclipsePreferences()
.getBoolean(FORCE_PY3K_PRINT_ON_PY2, DEFAULT_FORCE_PY3K_PRINT_ON_PY2);
}

public static String[] getKeywords() {
String keywords = PydevPrefs.getEclipsePreferences()
.get(KEYWORDS_CODE_COMPLETION, DEFAULT_KEYWORDS_CODE_COMPLETION);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ protected void createFieldEditors() {
"Add <SPACE><COLON> for common cases (e.g.: \"class :\", \"if :\", etc.)?", p));
addField(new LabelFieldEditor("LabelFieldEditor", "", p));

addField(new BooleanFieldEditor(PyCodeCompletionPreferences.FORCE_PY3K_PRINT_ON_PY2,
"Force print() function on Python 2.x projects?", p));
addField(new LabelFieldEditor("LabelFieldEditor", "", p));

addField(new ListEditor(PyCodeCompletionPreferences.KEYWORDS_CODE_COMPLETION, "Tokens to use:", p) {

@Override
Expand Down

0 comments on commit 3dbcef9

Please sign in to comment.