@@ -26,7 +26,6 @@ const LOAD_CODE_GET_URL = LOAD_CODE_PROD_GET_URL
26
26
// Default settings on page loadup.
27
27
const SUPPORTED_LANGUAGES = [ 'java' , 'python' , 'c_cpp' ]
28
28
const DEFAULT_LANGUAGE = 'python'
29
- const DEFAULT_AUTOCOMPLETE = false
30
29
const DEFAULT_PRACTICE = false
31
30
const DEFAULT_SETTINGS = {
32
31
language : DEFAULT_LANGUAGE ,
@@ -35,7 +34,6 @@ const DEFAULT_SETTINGS = {
35
34
disabled : false ,
36
35
uploading : false ,
37
36
practice : DEFAULT_PRACTICE ,
38
- autocomplete : DEFAULT_AUTOCOMPLETE
39
37
} ;
40
38
41
39
// Notification messages.
@@ -117,16 +115,6 @@ class CoderpadWrapper extends Component {
117
115
} ) ;
118
116
}
119
117
120
- /**
121
- * Enables/disables autocomplete.
122
- */
123
- onChangeAutocomplete = ( ) => {
124
- this . setState ( {
125
- ...this . state ,
126
- autocomplete : ! this . state . autocomplete
127
- } ) ;
128
- }
129
-
130
118
/**
131
119
* Adds code executing message and disables run button.
132
120
*/
@@ -292,7 +280,7 @@ class CoderpadWrapper extends Component {
292
280
< Grid container style = { { marginBottom : '1.5%' } } >
293
281
< Grid item xs = { 6 } >
294
282
< CodeEditor
295
- autocomplete = { this . state . autocomplete }
283
+ autocomplete = { false }
296
284
language = { this . state . practice === true ? 'plain_text' : this . state . language }
297
285
source = { this . state . source [ this . state . language ] }
298
286
onChange = { this . onChangeCode } />
@@ -317,18 +305,6 @@ class CoderpadWrapper extends Component {
317
305
< MenuItem value = 'c_cpp' > { languages [ 'c_cpp' ] } </ MenuItem >
318
306
</ Select >
319
307
</ FormControl >
320
- < FormControlLabel
321
- control = {
322
- < Checkbox
323
- checked = { this . state . autocomplete }
324
- onChange = { this . onChangeAutocomplete }
325
- value = 'autocomplete'
326
- style = { { color : '#0269a4' } }
327
- />
328
- }
329
- label = 'Code Autocomplete'
330
- style = { { marginRight : '2.5%' } }
331
- />
332
308
< FormControlLabel
333
309
control = {
334
310
< Checkbox
0 commit comments