Skip to content

Commit fed1c66

Browse files
committed
cleanup
1 parent ad52507 commit fed1c66

File tree

5 files changed

+47
-88
lines changed

5 files changed

+47
-88
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*
2+
* Copyright (C) 2018 Duy Tran Le
3+
*
4+
* This program is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU General Public License
15+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16+
*/
17+
18+
package com.duy.ccppcompiler.compiler.analyze;
19+
20+
import android.content.Context;
21+
import android.support.annotation.NonNull;
22+
23+
import com.jecelyin.editor.v2.editor.EditorDelegate;
24+
25+
import java.io.File;
26+
27+
/**
28+
* https://sourceforge.net/p/cppcheck/wiki/Home/
29+
*/
30+
public class CppCheckAnalyzer implements ICodeAnalyser {
31+
@NonNull
32+
private final Context context;
33+
@NonNull
34+
private final EditorDelegate delegate;
35+
36+
public CppCheckAnalyzer(@NonNull Context context, @NonNull EditorDelegate delegate) {
37+
this.context = context;
38+
this.delegate = delegate;
39+
}
40+
41+
@Override
42+
public void analyze(File[] sources) {
43+
44+
}
45+
46+
}

app/src/main/java/com/duy/ccppcompiler/compiler/analyze/GCCCodeAnalyzer.java

Lines changed: 0 additions & 31 deletions
This file was deleted.

app/src/main/java/com/duy/ccppcompiler/compiler/analyze/GPlusPlusCodeAnalyzer.java

Lines changed: 0 additions & 30 deletions
This file was deleted.

app/src/main/res/values-vi/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
<string name="failed_to_install_compiler">Cài đặt trình biên dịch thất bại</string>
1212
<string name="reinstall_compiler">Cài đặt lại trình biên dịch</string>
1313
<string name="compiler_setting">Cài đặt trình biên dịch</string>
14-
<string name="app_name">C/C++ Compiler</string>
14+
<string name="app_name">CPP N-IDE</string>
1515
<string name="message_non_project_file">Tệp này không thuộc về dự án: (%s)</string>
1616
</resources>

libeditor/src/main/java/com/jecelyin/editor/v2/editor/EditorFragment.java

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ public static EditorFragment newInstance(EditorPageDescriptor desc) {
6060
return newInstance(desc.getFile(), desc.getCursorOffset(), desc.getEncoding());
6161
}
6262

63-
6463
@Nullable
6564
@Override
6665
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
@@ -79,33 +78,15 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c
7978

8079
@Override
8180
public void onDestroyView() {
82-
if (DLog.DEBUG) DLog.d(TAG, "onDestroyView() called");
8381
if (mEditorDelegate != null) {
8482
if (mEditorDelegate.isChanged() && Preferences.getInstance(getContext()).isAutoSave()) {
85-
if (DLog.DEBUG)
86-
DLog.d(TAG, "onDestroyView: auto save file " + mEditorDelegate.getDocument().getFile());
8783
mEditorDelegate.saveInBackground();
8884
}
8985
}
9086
super.onDestroyView();
9187
}
9288

93-
@Override
94-
public void onDestroy() {
95-
super.onDestroy();
96-
}
97-
98-
@Override
99-
public void onViewStateRestored(@Nullable Bundle savedInstanceState) {
100-
super.onViewStateRestored(savedInstanceState);
101-
if (DLog.DEBUG)
102-
DLog.d(TAG, "onViewStateRestored() called with: savedInstanceState = [" + savedInstanceState + "]");
103-
104-
}
105-
10689
private void onRestoreState(@Nullable Bundle savedInstanceState) {
107-
if (DLog.DEBUG)
108-
DLog.d(TAG, "onRestoreState() called with: savedInstanceState = [" + savedInstanceState + "]");
10990
if (savedInstanceState == null) {
11091
return;
11192
}
@@ -116,16 +97,9 @@ private void onRestoreState(@Nullable Bundle savedInstanceState) {
11697
}
11798
}
11899

119-
@Override
120-
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
121-
super.onViewCreated(view, savedInstanceState);
122-
}
123-
124100
@Override
125101
public void onSaveInstanceState(@NonNull Bundle outState) {
126102
super.onSaveInstanceState(outState);
127-
if (DLog.DEBUG)
128-
DLog.d(TAG, "onSaveInstanceState() called with: outState = [" + outState + "]");
129103
if (mEditorDelegate != null) {
130104
Parcelable value = mEditorDelegate.onSaveInstanceState();
131105
outState.putParcelable(KEY_SAVE_STATE, value);

0 commit comments

Comments
 (0)