Disabled or removed tons of hardcoded functionality - needs to be generalized and localized or removed entirely

This commit is contained in:
Rick Falkvinge
2014-10-22 10:31:55 +02:00
parent d5726014e0
commit 4535df2ccc
13 changed files with 101 additions and 439 deletions
+8 -2
View File
@@ -1,3 +1,4 @@
using System;
using Swarmops.Basic.Enums;
using Swarmops.Logic.Security;
using Swarmops.Logic.Structure;
@@ -20,8 +21,13 @@ namespace Swarmops.Interface
public string AltText = "";
}
[Obsolete ("Person icons are deprecated in Swarmops in favor of individual avatars", true)]
public static PersonIconSpec ForPerson (Person person, Organizations organizations)
{
throw new NotImplementedException("Person icons are deprecated in Swarmops v5 in favor of gravatars/avatars");
/*
// HACK: For now, cheat and assume only PPSE roles matter. A future expansion of this is needed.
// HACK: Rehacked to use another org in case there is one and PPSE is not among selected
Organization org = null;
@@ -205,7 +211,7 @@ namespace Swarmops.Interface
{
// unhandled role type
return new PersonIconSpec("user-silhouette-question.png", "unknown role, " + (person.IsFemale ? "female" : person.IsMale ? "male" : ""));
}
}
} */
}
}
}