Questions tagged [obsolete]

Methods and ideas that are no longer used in the current versions of various technologies.

190 questions
14
votes
3 answers

Obsolete an entire namespace?

Can I mark an entire namespace as obsolete in .NET Framework (3.5 and 4) somehow, or alternativly an entire project?
Andreas
  • 5,501
  • 2
  • 20
  • 23
14
votes
3 answers

Suppressing obsolete warnings in VB.NET

I have VB.NET code in Visual Studio 2008 using an obsolete method and would like to suppress the warning. Unfortunately, following the recommendation is not a good solution, because it requires using a different class, which works differently, in…
Shahar Mosek
  • 1,922
  • 3
  • 17
  • 27
14
votes
6 answers

How to mark something in Qt as obsolete(deprecated)?

Is there Q_OBSOLETE or Q_DEPRECATED in C++ with Qt 4.7? Or is there a similar C++ macro or keyword?
Gad D Lord
  • 6,620
  • 12
  • 60
  • 106
14
votes
1 answer

Is x87 FP stack still relevant?

I notice compilers generate code that targets SIMD registers every time double arithmetic is used. This applies to non-optimized as well as optimized code. Does this mean the x87 FP unit can be considered obsolete and only present for backward…
user3735658
14
votes
4 answers

How can you mark code as "not for future use"

I often end up in a situation where I want to discourage other developers from continuing to use a method or class. For example, let's say I have two library methods "A" and "B" where "A" is the "old" way of doing some task and "B" is the "new" way…
ChaseMedallion
  • 20,860
  • 17
  • 88
  • 152
14
votes
2 answers

CodeDomProvider.CreateCompiler() is obsolete

CSharpCodeProvider codeProvider = new CSharpCodeProvider(); ICodeCompiler MyCompiler = codeProvider.CreateCompiler(); CompilerParameters myParameters = new CompilerParameters(); myParameters.GenerateExecutable = true; myParameters.OutputAssembly =…
mkam
  • 145
  • 1
  • 5
13
votes
3 answers

Why are C# collection-properties not flagged as obsolete when calling properties on them?

I tried to flag a collection property on a class as Obsolete to find all the occurances and keep a shrinking list of things to fix in my warning-list, due to the fact that we need to replace this collection property with something else. Edit: I've…
Lasse V. Karlsen
  • 380,855
  • 102
  • 628
  • 825
13
votes
3 answers

C# custom obsolete attribute

I was wondering if it's possible to create a custom obsolete class. I need it and I hate the fact Obsolete shows up this warning before my input: SOMETHING is Obsolete:. I just want to give a warning/error when I use the field/method with ONLY my…
12
votes
11 answers

What should I do when something I know is dead ?

I recently came into some blogs saying that Linq to Sql is dead. and a few days ago I saw a discussion with some people saying that Silverlight maybe will take ASP.net place! ...I don't want to ask if they are true or not but it is so annoying when…
Mohamad Alhamoud
  • 4,881
  • 9
  • 33
  • 44
12
votes
2 answers

Is Obsolete attribute only checked at Compile time?

I wonder that the obsolete attribute is checked at only runtime? Think that you have two assemblies. Assembly A uses a method from Assembly B. After that we mark the method in Assembly B as obsolete which causes a compile time error when compiling…
mkus
  • 3,357
  • 6
  • 37
  • 45
12
votes
2 answers

Why are drand48() and friends obsolete?

Why are drand48() and friends obsolete? After all, they seem superior to the standard libc rand(). Have I missed something? The manual pages for rand() and drand48() also seem at odds. The first recommends the second, and the second states that it…
Dúthomhas
  • 8,200
  • 2
  • 17
  • 39
12
votes
1 answer

Build warnings for Obsolete C# events

Does anyone know of a trick or workaround to get the Visual Studio C# compiler to issue build warnings when an Obsolete event is being used? If I create a simple assembly with a public event and apply the Obsolete attribute to the event, when I…
Origameg
  • 324
  • 2
  • 9
11
votes
3 answers

Warnings as Errors versus Deprecated Attribute in Visual Studio

We like the Warnings as Errors setting as we have a policy of not checking in code with warnings and this is the only effective way we have found to enforce it. We also like to use the Obsolete attribute to flag methods that should not be used any…
Kevin Lawrence
  • 698
  • 7
  • 23
9
votes
5 answers

why is Android API level 9 obsolete?

Android version 2.3 - 2.3.2 (API 9) are declared as obsolete, and according to Android Market statistics, are very rare (0.5% of market users). The question is: Why is API 9 declared obsolete and more importantly, is there any reason why should I…
Habba
  • 1,179
  • 2
  • 13
  • 32
9
votes
1 answer

CSS 3.0 user-select property replacement

I am using CSS 3.0 and it is complaining that the "user-select" property doesn't exist. Does anyone know what the appropriate substitute or replacement is?
MikeTWebb
  • 9,149
  • 25
  • 93
  • 132
1
2
3
12 13