@@ -1153,10 +1153,6 @@ mixin WidgetInspectorService {
1153
1153
name: WidgetInspectorServiceExtensions .getRootWidget.name,
1154
1154
callback: _getRootWidget,
1155
1155
);
1156
- _registerObjectGroupServiceExtension (
1157
- name: WidgetInspectorServiceExtensions .getRootRenderObject.name,
1158
- callback: _getRootRenderObject,
1159
- );
1160
1156
_registerObjectGroupServiceExtension (
1161
1157
name: WidgetInspectorServiceExtensions .getRootWidgetSummaryTree.name,
1162
1158
callback: _getRootWidgetSummaryTree,
@@ -1179,10 +1175,6 @@ mixin WidgetInspectorService {
1179
1175
};
1180
1176
},
1181
1177
);
1182
- _registerServiceExtensionWithArg (
1183
- name: WidgetInspectorServiceExtensions .getSelectedRenderObject.name,
1184
- callback: _getSelectedRenderObject,
1185
- );
1186
1178
_registerServiceExtensionWithArg (
1187
1179
name: WidgetInspectorServiceExtensions .getSelectedWidget.name,
1188
1180
callback: _getSelectedWidget,
@@ -1881,17 +1873,6 @@ mixin WidgetInspectorService {
1881
1873
});
1882
1874
}
1883
1875
1884
- /// Returns a JSON representation of the [DiagnosticsNode] for the root
1885
- /// [RenderObject] .
1886
- @protected
1887
- String getRootRenderObject (String groupName) {
1888
- return _safeJsonEncode (_getRootRenderObject (groupName));
1889
- }
1890
-
1891
- Map <String , Object ?>? _getRootRenderObject (String groupName) {
1892
- return _nodeToJson (RendererBinding .instance.renderView.toDiagnosticsNode (), InspectorSerializationDelegate (groupName: groupName, service: this ));
1893
- }
1894
-
1895
1876
/// Returns a JSON representation of the subtree rooted at the
1896
1877
/// [DiagnosticsNode] object that `diagnosticsNodeId` references providing
1897
1878
/// information needed for the details subtree view.
@@ -1932,23 +1913,6 @@ mixin WidgetInspectorService {
1932
1913
);
1933
1914
}
1934
1915
1935
- /// Returns a [DiagnosticsNode] representing the currently selected
1936
- /// [RenderObject] .
1937
- ///
1938
- /// If the currently selected [RenderObject] is identical to the
1939
- /// [RenderObject] referenced by `previousSelectionId` then the previous
1940
- /// [DiagnosticsNode] is reused.
1941
- @protected
1942
- String getSelectedRenderObject (String previousSelectionId, String groupName) {
1943
- return _safeJsonEncode (_getSelectedRenderObject (previousSelectionId, groupName));
1944
- }
1945
-
1946
- Map <String , Object ?>? _getSelectedRenderObject (String ? previousSelectionId, String groupName) {
1947
- final DiagnosticsNode ? previousSelection = toObject (previousSelectionId) as DiagnosticsNode ? ;
1948
- final RenderObject ? current = selection.current;
1949
- return _nodeToJson (current == previousSelection? .value ? previousSelection : current? .toDiagnosticsNode (), InspectorSerializationDelegate (groupName: groupName, service: this ));
1950
- }
1951
-
1952
1916
/// Returns a [DiagnosticsNode] representing the currently selected [Element] .
1953
1917
///
1954
1918
/// If the currently selected [Element] is identical to the [Element]
0 commit comments