diff options
author | Justin Clarke Casey | 2009-03-06 20:44:31 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-03-06 20:44:31 +0000 |
commit | f12619b78665a6f6b148c870d36b528428cf78b4 (patch) | |
tree | a34dd0b82497fa347cdbe10ee2237dccd6fd5230 /OpenSim/Region/Framework/Scenes | |
parent | * Improve memory usage when writing OARs (diff) | |
download | opensim-SC-f12619b78665a6f6b148c870d36b528428cf78b4.zip opensim-SC-f12619b78665a6f6b148c870d36b528428cf78b4.tar.gz opensim-SC-f12619b78665a6f6b148c870d36b528428cf78b4.tar.bz2 opensim-SC-f12619b78665a6f6b148c870d36b528428cf78b4.tar.xz |
* refactor: Remove GetLandOwner function from Scene
* Simplify since the land is never null
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index aa0218b..5cb9724 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -3019,19 +3019,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
3019 | m_eventManager.TriggerOnPluginConsole(args); | 3019 | m_eventManager.TriggerOnPluginConsole(args); |
3020 | } | 3020 | } |
3021 | 3021 | ||
3022 | public UUID GetLandOwner(float x, float y) | ||
3023 | { | ||
3024 | ILandObject land = LandChannel.GetLandObject(x, y); | ||
3025 | if (land == null) | ||
3026 | { | ||
3027 | return UUID.Zero; | ||
3028 | } | ||
3029 | else | ||
3030 | { | ||
3031 | return land.landData.OwnerID; | ||
3032 | } | ||
3033 | } | ||
3034 | |||
3035 | public LandData GetLandData(float x, float y) | 3022 | public LandData GetLandData(float x, float y) |
3036 | { | 3023 | { |
3037 | return LandChannel.GetLandObject(x, y).landData; | 3024 | return LandChannel.GetLandObject(x, y).landData; |