Questions tagged [obsolete]

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

190 questions
9
votes
3 answers

How to show a specific hint within Visual Studio

I'm currently working on improving my coding sensation so I've started adding some extension methods to the types I'm using. I figured out, that I'm doing the same action quite often always with the same attributes. I want to show this hint when…
cramopy
  • 3,459
  • 6
  • 28
  • 42
9
votes
1 answer

Windows 8.1 How to fix this obsolete code?

I have upgraded my project to windows 8.1 from windows 8.0 and got some warnings of obsolete codes. Some of them I have fixed, and some of them not. Here is an image of the last warnings that I couldn't fix and couldn't find any information. All…
Misha Zaslavsky
  • 8,414
  • 11
  • 70
  • 116
9
votes
1 answer

How can I mark Perl code as deprecated?

In my project I'm currently preparing a step-by-step move from legacy code to new, properly-designed and tested modules. Since not every fellow programmer follows closely what I do, I would like to emit warnings when old code is used. I would also…
Nikolai Prokoschenko
  • 8,465
  • 11
  • 58
  • 97
9
votes
4 answers

Uses for [Obsolete(string, bool)] attribute for .NET

Note: I already checked msdn, it doesn't address my actual question, see below. I'm trying to use the obsolete attribute on a (obviously obsolete) constructor in one of my classes. Here's the scenario: I want to be able to force the developer to…
IWriteApps
  • 973
  • 1
  • 13
  • 30
8
votes
3 answers

iPhone - When does a deprecated method usually becomes obsolete?

I'm using some methods in some apps that are now marked as deprecated since iOS5. I'd like to know when these updates will become urgent. So, usually, when does a deprecated method becomes obsolete ? Is there a chance that this will be with iOS 5.1…
Oliver
  • 23,072
  • 33
  • 138
  • 230
8
votes
1 answer

Status of Attributes: Deprecated or Obsolete?

I am new to HTML 5 and I have problems to find out in the diverse W3 HTML standardization documents to obtain the status of an attribute. For example, the bgcolor attribute of the element should not be used any longer since HTML 4.01. It was…
hakre
  • 193,403
  • 52
  • 435
  • 836
8
votes
2 answers

TypeScript – what is 'export import'?

Apparently, you can say 'export import xx = module("xx")' in TypeScript. But what does that mean? I didn't see that in the spec.
Oleg Mihailik
  • 2,514
  • 2
  • 19
  • 32
7
votes
3 answers

When should I use the [Obsolete] attribute and when should I delete my code?

The function of [Obsolete] is essentially to stop a class/function from being used but still to maintain it in code for the record. Is there any good reason why [Obsolete] should be used as opposed to just deleting, or commenting out the code. This…
ScottishTapWater
  • 3,656
  • 4
  • 38
  • 81
7
votes
5 answers

Prevent other developers using base methods within a class

I have a class that uses filesystem entities to manipulate data. We have several methods specifically designed to (attempt to) cope with some of the issues we face with this approach (file locking, non-existent files, etc.). Ideally I'd like to be…
ZombieSheep
  • 29,603
  • 12
  • 67
  • 114
7
votes
1 answer

Is it a good practice to use the [Obsolete] attribute to instruct developers no to use parts of an API

Recently I have been writing some serializable object that also deals with specific logic and has specific life-cycle. In order for it to work properly, it has to be instantiated with an appropriate constructor, that takes mandatory arguments. For…
Ivaylo Slavov
  • 8,839
  • 12
  • 65
  • 108
6
votes
2 answers

Is there a way to use bootstrap with jquery 3.x

I had Bootstrap 3.3.6 and jQuery 1.12.4 working in my website. As jQuery 3.0.0 was released into production, I upgraded jQuery to jQuery-3.0.0.js. After that, when I ran my site I got this console error. Error: Bootstrap's JavaScript requires…
naveen
  • 53,448
  • 46
  • 161
  • 251
6
votes
3 answers

Making a third-party method [Obsolete]

If I want to declare a method in my code as deprecated / obsolete, I can add the [Obsolete] attribute to it and make the compiler emit a warning (or error) whenever the method is used. Is it possible to achieve a similar effect for third-party…
Sebastian Negraszus
  • 11,915
  • 7
  • 43
  • 70
6
votes
1 answer

C#: What's the difference between an "Obsolete" function and "Deprecated" function?

C# has attribute called "Obsolete" to indicate a function should no longer be used. While in .net API specifications, when a class/function is out-dated, we say this is "deprecated". So I wonder about the differences between "Obsolete" and…
vik santata
  • 2,989
  • 8
  • 30
  • 52
6
votes
2 answers

Mark as Obsolete

I am trying to find all the unused methods of my project. I have search ways of doing this, but the most convincing answer I found was to declare all my functions as obsolete, and remove this attribute until I got no warnings. The problem is that I…
Sara
  • 71
  • 3
6
votes
1 answer

Vector is an obsolete Collection

The Inspection reports any uses of java.util.Vector or java.util.hashtable. While still supported, these classes were made obsolete by the JDK 1.2 Collection classes and should probably not be used in new Development.... I have a project in Java…
DeWy Sady
  • 320
  • 2
  • 16
1 2
3
12 13