aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorDiva Canto2009-09-24 18:28:38 -0700
committerDiva Canto2009-09-24 18:28:38 -0700
commitb6824c495cb04ca79c681143be2d1b8f9b5b228d (patch)
treefb5dfe401695459ac555028c19947f2b02e7e7d4 /OpenSim
parentMerge branch 'master' of ssh://diva@opensimulator.org/var/git/opensim (diff)
downloadopensim-SC-b6824c495cb04ca79c681143be2d1b8f9b5b228d.zip
opensim-SC-b6824c495cb04ca79c681143be2d1b8f9b5b228d.tar.gz
opensim-SC-b6824c495cb04ca79c681143be2d1b8f9b5b228d.tar.bz2
opensim-SC-b6824c495cb04ca79c681143be2d1b8f9b5b228d.tar.xz
Deleted the meaningless console commands on the GridService. Will need to add meaningful ones.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Services/GridService/GridService.cs72
1 files changed, 0 insertions, 72 deletions
diff --git a/OpenSim/Services/GridService/GridService.cs b/OpenSim/Services/GridService/GridService.cs
index 41344ad..68b7cdf 100644
--- a/OpenSim/Services/GridService/GridService.cs
+++ b/OpenSim/Services/GridService/GridService.cs
@@ -50,16 +50,6 @@ namespace OpenSim.Services.GridService
50 : base(config) 50 : base(config)
51 { 51 {
52 m_log.DebugFormat("[GRID SERVICE]: Starting..."); 52 m_log.DebugFormat("[GRID SERVICE]: Starting...");
53 MainConsole.Instance.Commands.AddCommand("kfs", false,
54 "show digest",
55 "show digest <ID>",
56 "Show asset digest", HandleShowDigest);
57
58 MainConsole.Instance.Commands.AddCommand("kfs", false,
59 "delete asset",
60 "delete asset <ID>",
61 "Delete asset from database", HandleDeleteAsset);
62
63 } 53 }
64 54
65 #region IGridService 55 #region IGridService
@@ -203,67 +193,5 @@ namespace OpenSim.Services.GridService
203 193
204 #endregion 194 #endregion
205 195
206 void HandleShowDigest(string module, string[] args)
207 {
208 //if (args.Length < 3)
209 //{
210 // MainConsole.Instance.Output("Syntax: show digest <ID>");
211 // return;
212 //}
213
214 //AssetBase asset = Get(args[2]);
215
216 //if (asset == null || asset.Data.Length == 0)
217 //{
218 // MainConsole.Instance.Output("Asset not found");
219 // return;
220 //}
221
222 //int i;
223
224 //MainConsole.Instance.Output(String.Format("Name: {0}", asset.Name));
225 //MainConsole.Instance.Output(String.Format("Description: {0}", asset.Description));
226 //MainConsole.Instance.Output(String.Format("Type: {0}", asset.Type));
227 //MainConsole.Instance.Output(String.Format("Content-type: {0}", asset.Metadata.ContentType));
228
229 //for (i = 0 ; i < 5 ; i++)
230 //{
231 // int off = i * 16;
232 // if (asset.Data.Length <= off)
233 // break;
234 // int len = 16;
235 // if (asset.Data.Length < off + len)
236 // len = asset.Data.Length - off;
237
238 // byte[] line = new byte[len];
239 // Array.Copy(asset.Data, off, line, 0, len);
240
241 // string text = BitConverter.ToString(line);
242 // MainConsole.Instance.Output(String.Format("{0:x4}: {1}", off, text));
243 //}
244 }
245
246 void HandleDeleteAsset(string module, string[] args)
247 {
248 //if (args.Length < 3)
249 //{
250 // MainConsole.Instance.Output("Syntax: delete asset <ID>");
251 // return;
252 //}
253
254 //AssetBase asset = Get(args[2]);
255
256 //if (asset == null || asset.Data.Length == 0)
257 // MainConsole.Instance.Output("Asset not found");
258 // return;
259 //}
260
261 //Delete(args[2]);
262
263 ////MainConsole.Instance.Output("Asset deleted");
264 //// TODO: Implement this
265
266 //MainConsole.Instance.Output("Asset deletion not supported by database");
267 }
268 } 196 }
269} 197}